﻿using System.Web.Mvc;
using System.Web.Routing;

namespace SlamCms.Sample.Web.Core.Bootstrappers
{
	public class B01Routing : Bootstrapper
	{
		public override void PostApplicationStart(PostApplicationStartContext context)
		{
			var routes = RouteTable.Routes;

			routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

			routes.MapTagBrowser("Resources");

			routes.MapRoute("Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional });
		}
	}
}